#pragma once
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/types.h>
enum MODEBUFF
{
  NO_BUFF,
  ROW_BUFF,
  FULL_BUFF,
};
typedef struct MYFILE
{
  int fileno;
  char buffer[64];
  int pos;
  int mode;
}MYFILE;

MYFILE* fopen(const char*path,const char*option);

int mywrite(const char*str,int size,int n,MYFILE*fp);

int fclose(MYFILE*fp);
